greaterThan(QT_MAJOR_VERSION, 4):QT += widgets webkitwidgets xml

# Add more folders to ship with the application, here
folder_01.source = html
folder_01.target = .
DEPLOYMENTFOLDERS = folder_01

# link config
win32 {
    INCLUDEPATH 	+= "E:\Information Technology\Windows\database\mysql-connector-c-6.1.5-winx64\include"
    LIBS			+= -llibmysql
}

!win32 {
    #QMAKE_LIBDIR 	+= /usr/lib
    #QMAKE_LIBS 	+= -lmysqlclient
    LIBS			+= -L/usr/lib
    LIBS			+= -lmysqlclient
}

# Define TOUCH_OPTIMIZED_NAVIGATION for touch optimization and flicking
#DEFINES += TOUCH_OPTIMIZED_NAVIGATION LINUXCODE

# The .cpp file which was generated for your project. Feel free to hack it.
SOURCES += main.cpp \
    routine/data/user/user.cpp \
    routine/data/event/event.cpp \
    routine/interface/db/db.cpp \
    routine/option/opt.cpp \
    routine/global.cpp \
    routine/interface/net/net.cpp \
    routine/log/log.cpp \
    routine/threads/thread.cpp \
    routine/tunnel/tunnel.cpp \
    routine/tools/queue/queue.cpp \
    routine/threads/base_thread.cpp \
    routine/threads/db_thread/db_thread.cpp \
    routine/threads/net_thread/net_thread.cpp \
    routine/threads/ui_thread/ui_thread.cpp \
    ui/mainwindow.cpp \
    ui/bridge/html_bridge.cpp

FORMS += ui/mainwindow.ui \

# Please do not modify the following two lines. Required for deployment.
include(viewer/viewer.pri)
qtcAddDeployment()

OTHER_FILES += \
    js/pem_main.js \
    html/monitor/pem_center.js \
    html/common/form_field.js \
    html/common/pem_error.js \
    html/data/pem_data.js \
    html/data/pem_data_alarm.js \
    html/data/pem_data_device.js \
    html/data/pem_data_event.js \
    html/data/pem_data_protocal.js \
    html/data/pem_data_scene.js \
    html/data/pem_data_system.js \
    html/data/pem_data_tunnel.js \
    html/data/pem_data_user.js \
    html/interface/pem_interface.js \
    html/login/pem_login.js \
    html/monitor/center/device/panel_device.js \
    html/monitor/center/scene/panel_alarm.js \
    html/monitor/center/scene/panel_event.js \
    html/monitor/center/scene/panel_protocal.js \
    html/monitor/center/scene/panel_scene.js \
    html/monitor/center/scene/panel_switch.js \
    html/monitor/center/scene/panel_system.js \
    html/monitor/center/scene/panel_tunnel.js \
    html/monitor/center/title/panel_title.js \
    html/monitor/center/pem_center.js \
    html/monitor/north/pem_north.js \
    html/monitor/south/pem_south.js \
    html/monitor/west/pem_west.js \
    html/monitor/pem_monitor.js \
    html/pem_main.js \
    html/pem_main.html

HEADERS += \
    include.h \
    typedef.h \
    define.h \
    errorcode.h \
    routine/data/user/user.h \
    routine/data/event/event.h \
    routine/interface/db/db.h \
    routine/option/opt.h \
    routine/global.h \
    routine/interface/net/net.h \
    routine/log/log.h \
    routine/threads/thread.h \
    routine/tunnel/tunnel.h \
    routine/tools/queue/queue.h \
    routine/threads/db_thread.h \
    routine/threads/base_thread.h \
    routine/threads/db_thread/db_thread.h \
    routine/threads/net_thread/net_thread.h \
    routine/protocal/protocal.h \
    routine/threads/ui_thread/ui_thread.h \
    routine/protocal/db_protocal.h \
    routine/protocal/ui_protocal.h \
    routine/protocal/net_protocal.h \
    ui/mainwindow.h \
    ui/bridge/html_bridge.h \

